package com.itheima.Test;

import org.springframework.security.crypto.bcrypt.BCryptPasswordEncoder;

public class 权限框架加密Test {


    public static void main(String[] args) {

//        String encode = new BCryptPasswordEncoder().encode("admin");
//        System.out.println(encode);

//        String admin = new BCryptPasswordEncoder().encode("12345");
//        System.out.println(admin);

        boolean matches = new BCryptPasswordEncoder().matches("123456", "$2a$10$oKVihW6S2.5.pDfBVqLeBOcc3sKU/zybKFY9.QGQlwA.vRivfKS/i");
        System.out.println(matches);



    }

}
